<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="static/js/font_1693746_l88lqiaavxa.js"></script>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/font_1693746_l88lqiaavxa.css">
  <title>开发助手高效版-网页版极致cms开发助手</title>
</head>
<body>
<div class="tool-container clearfix">
  <div class="menu">
    <span></span>
  </div>
  <div class="tool-nav" style="display: none;">
    <a href="index.html">导航菜单</a>
    <a href="site.html">站点信息</a>
    <a href="index-page.html">指定栏目</a>
    <a href="index-list.html">指定文章列表</a>
    <a href="index-product.html">指定商品列表</a>
    <a href="sort.html">当前栏目</a>
    <a href="banner.html">轮播图</a>
    <a href="">文章列表</a>
    <a href="article-details.html">文章详情</a>
    <a href="productlist.html">产品列表</a>
    <a href="product.html">产品详情</a>
    <a href="pics.html">多图遍历</a>
    <a href="fenye.html">分页</a>
    <a href="message.html">表单留言</a>
    <a href="search.html">搜索列表</a>
    <a href="if.html">IF判断</a>
    <a href="en.html">多语言建站</a> 
    <a href="select.html">多条件筛选</a>
    <a href="label.html">全局标签</a>
    <a href="user.html">会员登录注册</a>
    <a href="javascript:;">无刷新点赞</a>
    <a href="link.html">友情链接</a>
    <a href="other.html">其他</a>
  </div>
  <div class="tool-left">
    <div class="english">
      <a href="en.html"><svg class="icon" aria-hidden="true"><use xlink:href="#iconchina"></use></svg>CN <svg class="icon" aria-hidden="true"><use xlink:href="#iconmeiguo"></use></svg>EN</a>
    </div>
    <div class="logo-search container">
      <a href="site.html" class="logo">极致CMS开发助手</a>
      <a href="search.html" class="search">
        <span>请输入关键词</span>
        <span>搜索</span>
      </a>
      <a href="user.html" class="login">
        <span>登录/注册</span>
      </a>
    </div>
    <div class="header">
      <ul class="navbar clearfix">
        <li><a href="index.html">首页</a></li>
        <li><a href="productlist.html">产品列表</a></li>
        <li><a href="product.html">产品详情</a></li>
        <li><a href="">文章列表</a></li>
        <li><a href="article-details.html">文章详情</a></li>
        <li><a href="page.html">单页</a></li>
        <li><a href="label.html">全局标签</a></li>
        <li><a href="other.html">其他</a></li>
      </ul>
    </div>
    <div class="banner">
      <a href="sort.html">
        <span>Img - Sort</span>
      </a>
    </div>

    <div class="product-box container clearfix">
      <div class="product-sort fl">
        <a href="vnav.html">
          <h4>当前栏目</h4>
          <ul>
            <li>下级分类1</li>
            <li>下级分类2</li>
            <li>下级分类3</li>
            <li>下级分类4</li>
            <li>下级分类5</li>
          </ul>
        </a>
        <a href="vnav.html">
          <h4>新闻中心(顶级)</h4>
          <ul>
            <li>新闻分类1</li>
            <li>新闻分类2</li>
            <li>新闻分类3</li>
            <li>新闻分类4</li>
            <li>新闻分类5</li>
          </ul>
        </a>
      </div>
      <div class="product-content fr">
        <div class="position clearfix"><a href="sort.html" class="fl">栏目名称</a><a href="sort.html" class="fr">当前位置：首页 > 产品中心</a></div>
        <div class="product-list">
          <a href="vnav.html" class="checkbox">
            <span class="all">公司新闻</span><span>行业新闻</span><span>媒体新闻</span>
          </a>
          <div class="news-recommend">
            <a href="article-details.html">
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
              <p>新闻列表的第一条内容 <span>2020-03-20</span></p>
            </a>
          </div>
          <div class="common-page">
            <a href="fenye.html">
              <span>共3页</span>
              <span>页次：1/3页</span>
              <span>首页</span>
              <span>上一页</span>
              <span class="active">1</span>
              <span>2</span>
              <span>3</span>
              <span>下一页</span>
              <span>尾页</span>
              <span>转到</span>
              <span><select name="" id=""><option value="">1</option></select></span>
            </a>
          </div>
          <div class="news-recommend">
            <a href="index-list.html">
              <h3>新闻推荐</h3>
              <p>这是推荐的产品 <span>2020-03-20</span></p>
              <p>这是推荐的产品 <span>2020-03-20</span></p>
              <p>这是推荐的产品 <span>2020-03-20</span></p>
              <p>这是推荐的产品 <span>2020-03-20</span></p>
              <p>这是推荐的产品 <span>2020-03-20</span></p>
            </a>
          </div>
        </div>
      </div>
    </div>
    
    <a href="site.html" class="index-footer">
      <p><span>&copy;2020 极致CMS版权所有</span></p>
      <p><span>蜀ICP备2021016482号</span></p>
    </a>
  </div>
  
  <div class="tool-right">
    <div class="tool-code">
      <h2>极致CMS开发助手</h2>
      <div class="tool-code-box" id="tool-code1">

        <div class="code-box code-create">
          <h3>栏目列表标题/关键词/描述</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea id="sort" type="text" name="result" value="" rows="3">
<title>{$type['classname']}-{$webconf['web_name']}</title>
<meta name="keywords" content="{$type['keywords']}" />
<meta name="description" content="{$type['description']}" /></textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>

        <div class="code-box code-case">
          <h3>栏目列表相关示例</h3>
          <div class="tab-hd">
            <span class="active">当前栏目列表</span>
            <span>指定栏目列表</span>
            <span>Screen筛选标签</span>
			  <span>全部的 </span>
			  <span>销量等排序</span>
			   <span>列表点赞收藏</span>
			  
          </div>
          <div class="tab-bd">
<div class="textarea-box">
  <textarea name="" id="" rows="8">
{if($lists)}
{foreach $lists as $v}
  <li><a href= "{$v['url']}">{$v['title']}</a></li>
{/foreach}
{else}
没有数据
{/if}</textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="4">
{loop table="article" tid="1"  isshow="1" isall="1"  limit="10" as="v"}
  <li><a href= "{$v['url']}">{$v['title']}</a></li>
{/loop}</textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="13">
{screen molds="article"   orderby="orders desc"  as="s"}
{$s['fieldname']} ：
<ul style="display: flex;">
    <li>
        <a href="{$s['url']}">全部</a>
    </li>
{foreach $s['list'] as $ss}
    <li>
        <a  href="{$ss['url']}">{$ss['value']}</a>
    </li>
{/foreach}
</ul>
{/screen}</textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="13">
{if($classtypedata[$type['id']]['haschild'])}
		<li><a class="active" href="{$type['url']}">全部</a></li>
		{else}
		<li><a  href="{$classtypedata[$type['pid']]['url']}">全部</a></li>
		{/if}
		{if($classtypedata[$type['id']]['haschild'])}
	{foreach $classtypedata[$type['id']]['children']['list'] as $v}
			<li><a class="{if(isset($type) && in_array($type['id'],$v['children']['ids']))}active{/if}" href="{$v['url']}">{$v['classname']}</a></li>
			{/foreach}
			{else}
			{foreach $classtypedata as $vv}
			{if($vv['pid']==$type['pid'])}
			<li><a class="{if(isset($type) && in_array($type['id'],$vv['children']['ids']))}active{/if}" href="{$vv['url']}">{$vv['classname']}</a> </li>
			{/if}
			{/foreach} 
			{/if}
            </textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="13">
<div class="market container bg-white">
	<div class="filtrate flex-aic-jcsb">
		<div class="filtrate-left flex-aic">
			
			<div class="flex-aic">
				<a href="{$type['url']}" class="active">
					综合排序
				</a>
			</div>
			
			<div class="flex-aic">
				<a href="{$type['url']}?orders=6" class="noactive">
					销量
				</a>
				<img src="{$tpl}static/picture/filtrate_active.svg"
				alt="" class="deactive-img">
				<img src="{$tpl}static/picture/filtrate.svg"
				alt="" class="active-img">
			</div>
			
			<div class="flex-aic">
				<a href="{$type['url']}?orders=4" class="noactive">
					上架时间
				</a>
				<img src="{$tpl}static/picture/filtrate_active.svg"
				alt="" class="deactive-img">
				<img src="{$tpl}static/picture/filtrate.svg"
				alt="" class="active-img">
			</div>
			
			<div class="flex-aic">
				<a href="{$type['url']}?orders=8" class="noactive">
					价格
				</a>
				<img src="{$tpl}static/picture/filtrate_active.svg"
				alt="" class="deactive-img">
				<img src="{$tpl}static/picture/filtrate.svg"
				alt="" class="active-img">
			</div>
            </textarea><button onclick="copyTextarea()">COPY</button>
</div><div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="13">
  <div class="post-meta-right-side">
                        {if(checkCollect($v['tid'],$v['id']))}
						<a title="已收藏" onclick="collect({$v['tid']},{$v['id']})"
                          ><img src="{$tpl}static/picture/collect.png" alt=""
                        /></a>
						{else}
						<a title="点击收藏" onclick="collect({$v['tid']},{$v['id']})"
                          ><img src="{$tpl}static/picture/small-bookmark.png" alt=""
                        /></a>
						{/if}
                        
						{if(checkLikes($v['tid'],$v['id']))}
						<a title="已点赞" onclick="likes({$v['tid']},{$v['id']})"
                          ><img src="{$tpl}static/picture/zan.png" alt=""
                        /></a>
						{else}
						<a title="点赞" onclick="likes({$v['tid']},{$v['id']})"
                          ><img src="{$tpl}static/picture/heart.png" alt=""
                        /></a>
						
						{/if}
                      </div>
            </textarea><button onclick="copyTextarea()">COPY</button>
</div>

          </div>
		   <div class="code-box code-create">
          <h3>列表判断有无即输出</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea type="text" name="result" value="" rows="5">
{if($lists)}{foreach $lists as $v}
有内容
{/foreach}
{else}无内容{/if}
</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
		 <div class="code-box code-create">
          <h3>列表文章对应的TAG</h3>
          <div class="num">
            <div class="result-code">
              <div class="textarea-box">
<textarea type="text" name="result" value="" rows="1">
哈哈 这里留空
</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
		 <div class="code-box code-create">
          <h3>自定义输出当前位置</h3>
          <div class="num">
            <div class="result-code">
             <div class="textarea-box">
<textarea type="text" name="result" value="" rows="3">
{foreach $positions_data as $v}
{php echo '<a href="'.$v['url'].'">'.$v['classname'].'</a>' /} 
{/foreach}
</textarea><button onclick="copyTextarea()">COPY</button>
              </div>
            </div>
          </div>
        </div>
		  	<div class="code-box code-case">
          <h3>投稿作者的各种信息 需jz改v</h3>
          <div class="tab-hd">
            <span class="active">头像链接等信息</span>
            <span>投稿作者的签名</span>
            <span>作者的最近几篇新文章</span>
            
          </div>
          <div class="tab-bd">
<div class="textarea-box">
  <textarea name="" id="" rows="7">
{if($jz['member_id'])}
{php $user = memberInfo($jz['member_id']);/} 
{fun U('user/active',['uid'=>$user['id']])}  链接
{if(!memberInfo($jz['member_id'],'litpic'))}{$common}user/images/login.png{else}{fun memberInfo($jz['member_id'],'litpic')}{/if}  头像
{$user['username']} 名字 {else} admin{/if}
</textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="1">
{if($user['signature'])}{$user['signature']}{else}他很懒哦~暂时还没有签名{/if}
  </textarea><button onclick="copyTextarea()">COPY</button>
</div>
<div class="textarea-box" style="display: none;">
  <textarea name="" id="" rows="3">
{loop table="article" orderby="addtime desc" isshow="1" limit="5" member_id="$jz['member_id']" as="v"}
href="{$webconf["domain"]}/{$v['id']}" title="{$v["title"]}"
{/loop}</textarea><button onclick="copyTextarea()">COPY</button>
</div>

          </div>
        </div>
		
          <div class="code-tips">
            <span>Tips</span>列表调用条数在栏目里设置,<br>
            底部有当前栏目标签
          </div>
      </div>

        <div class="code-box code-para">
          <h3>列表标签<span>(点击即复制)</span></h3>
            <button onclick="copyText()"><span class="copy">{foreach $lists as $v}</span><span>列表开始</span></button>
            <button onclick="copyText()"><span class="copy">{$v['title']}</span><span>标题</span></button>
            <button onclick="copyText()"><span class="copy">{$v['url']}</span><span>内容链接</span></button>
            <button onclick="copyText()"><span class="copy">{$v['description']}</span><span>简介</span></button>
            <button onclick="copyText()"><span class="copy">{fun newstr($v['title'],50)}</span><span>标题截取25字</span></button>
            <button onclick="copyText()"><span class="copy">{fun newstr($v['description'],40)}</span><span>简介截取20字</span></button>
            <button onclick="copyText()"><span class="copy">{$v_n}</span><span>计数器从1开始计</span></button>
            <button onclick="copyText()"><span class="copy">{$v_key}</span><span>计数器从0开始计</span></button>
            <button onclick="copyText()"><span class="copy">{$v['litpic']}</span><span>缩略图</span></button>
            <button onclick="copyText()"><span class="copy">{if($v['litpic'])}<img src="http://tag.cqkjpx.com/%7B$v['litpic']%7D">{/if}</span><span>有显示无不显示缩略图</span></button>
            <button onclick="copyText()"><span class="copy">{if($v['litpic'])}<img src="http://tag.cqkjpx.com/%7B$v['litpic']%7D">{else}<img src="http://tag.cqkjpx.com/noimg.jpg">{/if}</span><span>有显示无显示默认图</span></button>
            <button onclick="copyText()"><span class="copy">{$v['hits']}</span><span>热度/点击量</span></button>
            <button onclick="copyText()"><span class="copy">{$classtypedata[$v['tid']]['classname']}</span><span>所属栏目名</span></button>
            <button onclick="copyText()"><span class="copy">{$classtypedata[$v['tid']]['url']}</span><span>所属栏目url</span></button>
            <button onclick="copyText()"><span class="copy">{$v['tid']}</span><span>所属栏目id</span></button>
            <button onclick="copyText()"><span class="copy">{$v['comment_num']}</span><span>评论数</span></button>
            <button onclick="copyText()"><span class="copy">{$v['body']}</span><span>内容</span></button>
            <button onclick="copyText()"><span class="copy">{fun newstr(htmldecode($v['body']),50)}</span><span>内容纯文字截取25字</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y-m-d',$v['addtime'])}</span><span>时间:年-月-日</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y-m-d H:i:s',$v['addtime'])}</span><span>时间:年-月-日 时:分:秒</span></button>
            <button onclick="copyText()"><span class="copy">{fun date('Y/m/d',$v['addtime'])}</span><span>时间:年/月/日</span></button>
            <button onclick="copyText()"><span class="copy">{$v['qita']}</span><span>其他字段</span></button>
            <button onclick="copyText()"><span class="copy">{/foreach}</span><span>列表结束</span></button>
        </div>

        <div class="code-box code-label">
          <h3>当前栏目标签<span>(点击即复制)</span></h3>
          <button onclick="copyText()"><span class="copy">{$positions}</span><span>当前位置</span></button>
          <button onclick="copyText()"><span class="copy">{$type['id']}</span><span>当前栏目ID</span></button>
          <button onclick="copyText()"><span class="copy">{$type['classname']}</span><span>当前栏目名</span></button>
          <button onclick="copyText()"><span class="copy">{$type['molds']}</span><span>当前模块标识</span></button>
          <button onclick="copyText()"><span class="copy">{$type['litpic']}</span><span>当前栏目缩略图</span></button>
          <button onclick="copyText()"><span class="copy">{$type['url']}</span><span>当前栏目url</span></button>
          <button onclick="copyText()"><span class="copy">{$type['keywords']}</span><span>当前栏目关键词</span></button>
          <button onclick="copyText()"><span class="copy">{$type['description']}</span><span>当前栏目描述</span></button>
          <button onclick="copyText()"><span class="copy">{$type['body']}</span><span>当前栏目内容</span></button>
          <button onclick="copyText()"><span class="copy">{$type['lists_num']}</span><span>当前栏目列表输出条数</span></button>
          <button onclick="copyText()"><span class="copy">{$type['comment_num']}</span><span>当前栏目评论数</span></button>
          <button onclick="copyText()"><span class="copy">{$type['pid']}</span><span>当前栏目上级栏目id</span></button>
          <button onclick="copyText()"><span class="copy">{$classtypedata[$type['pid']]['classname']}</span><span>当前栏目上级栏目名</span></button>
          <button onclick="copyText()"><span class="copy">{$classtypedata[$type['pid']]['url']}</span><span>当前栏目上级栏目url</span></button>
          <input type="text" id="input" value="12345" style="opacity: 0;">
        </div>

    </div>
  </div>
</div>
<script src="static/js/jquery-1.10.2.js"></script>
<script src="static/js/base.js"></script>
</div></body>
</html>